package ejb.contentManagement;

import java.util.List;

import ejb.dto.LocationDTO;

public interface LocationMgr {

	/**
	 * Insert Location identified by <code>newLocation</code> in database
	 * @param newLocation
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean insertLocation(LocationDTO newLocation);

	/**
	 * Delete Location identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean deleteLocation(int id);

	/**
	 * Return all LocationDTO
	 * @return all LocationDTO
	 */
	List<LocationDTO> getAllLocationsDTO();

	/**
	 * Return LocationDTO of Location identified by <code>id</code>
	 * @param id
	 * @return LocationDTO
	 */
	LocationDTO getLocationDTO(int id);

	/**
	 * Update Location identified by <code>updatedLocation</code> in database
	 * @param updatedLocation
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean updateLocation(LocationDTO updatedLocation);

}
